import request from '@/utils/request'

export function getProductTypeBriefInfos() {
  return request({
    url: '/getProductTypeBriefInfos',
    method: 'get',
  })
}

export function getProductTypeInfosByPageAndConditions(data) {
  return request({
    url: '/getProductTypeInfosByPageAndConditions',
    method: 'get',
    params:data
  })
}

export function addProductType(data) {
  return request({
    url: '/addProductType',
    method: 'post',
    data
  })
}

export function updateProductTypeInfo(data) {
  return request({
    url: '/updateProductTypeInfo',
    method: 'put',
    data
  })
}

export function deleteProductTypeInfo(id) {
  return request({
    url: '/deleteProductTypeInfo',
    method: 'delete',
    params: id
  })


}


